import Vue from 'vue'
import Router from 'vue-router'
import main from "../view/main"
import Practice from "../view/components/Practice"
import dog_vs_cat from "../view/components/Dog_vs_Cat"
import welcome from "../view/components/HelloWorld"
import test from "../view/components/test"
import User_Info from "../view/components/UserInfo"
import Model_Eva from "../view/components/ModelEvalute"
import Login from "../view/components/Login"
import ML_HandBook from "../view/components/ML_HandBook"


Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path:"/login",
      name:'Tensorflow网络实验平台',
      component:Login
    },
    {
      path:"/",
      name:'Tensorflow网络实验平台',
      component:Login
    },
    {
      path: '/main',
      name: 'main',
      component: main,
      children:[
        {
          path:"/welcome",
          name:'welcome',
          component: welcome,
        },
        {
          path:"/dog_vs_cat",
          name:'dog_vs_cat',
          component: dog_vs_cat,
        },
        {
          path:"/Practice",
          name:'Practice',
          component: Practice,
        },
        {
          path: "/userinfo",
          name: 'userinfo',
          component: User_Info,
        },
        {
          path:"/userinfo",
          name:'userinfo',
          component: User_Info,
        },
        {
          path:"/modeleva",
          name:'modeleva',
          component: Model_Eva,
        },
        {
          path:"/modeleva",
          name:'modeleva',
          component: Model_Eva,
        },
        {
          path:"/help",
          name:'help',
          component: ML_HandBook,
        }
      ]
    }
  ]
})
